//
//  CS_QueryPanel_ConditionView.h
//  CSUIKit
//
//  Created by 浙大网新中研软件 on 2017/11/10.
//

#import <CSUIKit/CSUIKit.h>

typedef void(^OnConditionViewHideBlock)(void);

typedef void(^OnConditionCongfiureFinishedBlock)(NSString *value, NSString *content);

typedef void(^OnConditionConfigureCancelBlock)(void);

@interface CS_QueryPanel_ConditionView : CSBaseView

#define HEIGHT_LEFT_FOR_MASK 150.0//剩余高度
#define HEIGHT_REST_CONDITION_VIEW (kWindowH - HEIGHT_NAVIGATIONBAR - 40)//剩余的查询条件显示区域高度

/**
 * 查询模块名称
 */
@property (nonatomic, strong) CSConditionModel *conditionModel;

/**
 * 当参数配置结束
 */
@property (nonatomic, copy) OnConditionCongfiureFinishedBlock onConditionCongiureFinishedHandler;

@property (nonatomic, copy) OnConditionConfigureCancelBlock onConditionConfigureCancelBlock;

//灰色按钮，点击隐藏查询条件界面
@property (nonatomic, strong, readonly) UIButton *maskButton;

+(id)queryPanel_ConditionView:(CSConditionModel *)conditionModel;

+(id)queryPanel_ConditionViewForOther:(NSArray *)otherConditionModels;

@end
